home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Shareware
/
IDimager Personal 4.2.0.3
/
setup_IDimager_Personal_V4.exe
/
{app}
/
web
/
modules
/
albumimages.psc
next >
Wrap
Text File
|
2008-06-11
|
1KB
|
50 lines
%include uservalidate.inc %/include
%code
%include storeddata.inc %/include
%include resulttable.inc %/include
var
AItems: TCatalogItems;
AModel: TImageModel;
i: Integer;
begin
if not FindStoredData ('dsITEMS', AItems, False) then
begin
AItems := TCatalogItems.Create (TCatalogItem, '');
StoreData ('dsITEMS', AItems);
end;
if AItems.GUID <> Request.Params.Values['GUID'] then
begin
AItems.Clear;
AItems.LastSort := csPhotoDate;
AItems.LastSortOrder := stAscending;
AModel := TImageModel.Create(nil);
AModel.GUID := Request.Params.Values['GUID'];
Catalog.EnumModel (AModel.GUID, AModel, False);
Catalog.EnumPhotosAlbum (AModel, AItems, vptAlbumDisplay);
AItems.Name := toWideString('');
AItems.GUID := Request.Params.Values['GUID'];
AItems.Name := AItems.Name +
'';
AItems.Name := AItems.Name +
AModel.ModelName +
'<span class="small"><br/>';
AItems.Name := AItems.Name + '</span>';
AModel.Free;
end;
result := IncludeResultTable (AItems, 'dsITEMS', 1, 0, 0);
end;
%/code